<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Models\Record;

class IndexController extends Controller
{
    public function index(Request $request){
     
        Record::create([
            'emails_id'=>$request->get('id'),
            'email'=>$request->get('email'),
            'myanswer'=>$request->get('myanswer')
        ]);
        return view('success');
    }
}
